import request from '@/utils/request'

// 查询药品入库信息列表
export function listDrugIncoming(query) {
  return request({
    url: '/manage/drugIncoming/list',
    method: 'get',
    params: query
  })
}

// 查询药品入库信息详细
export function getDrugIncoming(incomingId) {
  return request({
    url: '/manage/drugIncoming/' + incomingId,
    method: 'get'
  })
}

// 新增药品入库信息
export function addDrugIncoming(data) {
  return request({
    url: '/manage/drugIncoming',
    method: 'post',
    data: data
  })
}

// 修改药品入库信息
export function updateDrugIncoming(data) {
  return request({
    url: '/manage/drugIncoming',
    method: 'put',
    data: data
  })
}

// 删除药品入库信息
export function delDrugIncoming(incomingId) {
  return request({
    url: '/manage/drugIncoming/' + incomingId,
    method: 'delete'
  })
}
